package designs.models.decorator.example.one;

import java.io.File;
import java.util.ArrayList;

public class Application {
	public static void main(String[] args) {
		String path = "bin/";
		ArrayList<String> wordList = new ArrayList<String>();
		ReadEnglishWord rew = new ReadEnglishWord();
		WordDecorator wd1 = new WordDecorator(rew, new File(path+"designs/models/decorator/example/one/chinese.txt"));
		ReadWord read = wd1;
		wordList = read.readWord(new File(path+"designs/models/decorator/example/one/english.txt"));
		for (int i = 0; i < wordList.size(); i++) {
			System.out.println(wordList.get(i));
		}
		
		WordDecorator wd2 = new WordDecorator(wd1, new File(path+"designs/models/decorator/example/one/englishSentence.txt"));
		read = wd2;
		wordList = read.readWord(new File(path+"designs/models/decorator/example/one/english.txt"));
		for (int i = 0; i < wordList.size(); i++) {
			System.out.println(wordList.get(i));
		}
	}
}
